using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class PhotoInfoNote : FlickrObject
    {
        public PhotoInfoNote():base(){}
        public PhotoInfoNote(FlickrConnection connection) : base(connection){}
        
        [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
        public int NoteId;

        [XmlAttribute("author", Form=XmlSchemaForm.Unqualified)]
        public string AuthorId;

        [XmlAttribute("authorname", Form=XmlSchemaForm.Unqualified)]
        public string AuthorName;

        [XmlAttribute("x", Form=XmlSchemaForm.Unqualified)]
        public int XPosition;

        [XmlAttribute("y", Form=XmlSchemaForm.Unqualified)]
        public int YPosition;

        [XmlAttribute("w", Form=XmlSchemaForm.Unqualified)]
        public int Width;

        [XmlAttribute("h", Form=XmlSchemaForm.Unqualified)]
        public int Height;

        [XmlText()]
        public string NoteText;
    }
}